package com.triadsystems.cashweb.modelo.persistencia.entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.triadsystems.cashweb.modelo.persistencia.enums.TipoPagamentoEnum;

import lombok.Getter;
import lombok.Setter;

@Entity
@Table 
@SequenceGenerator(name="seq_form_pag", sequenceName="cw_seq_forma_pagamento", initialValue=1, allocationSize=1)
public class FormaPagamento extends ValueObject {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column
	@GeneratedValue(generator = "seq_form_pag", strategy = GenerationType.SEQUENCE)
	@Getter @Setter
	private Long entityId;
	
	@Getter @Setter
	private String bandeira; 
	
	@Getter @Setter
	private TipoPagamentoEnum tipoPagamento;
}
